import {
  ADD_COUNTER,
  ADD_TO_CART,
} from './mutation-type'


export default {
  //mutations尽可能完成的事情单一
  [ADD_COUNTER](state,payload){
    payload.count++
  },
  [ADD_TO_CART](state,payload){
    payload.checked = true
    state.cartList.push(payload)
  },
}
